package com.chenwang.front.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

import javax.servlet.http.HttpServletRequest;

@RestController
@RequestMapping
public class IndexController {

    @RequestMapping ( "/index" )
    public ModelAndView index(HttpServletRequest request) {
        ModelAndView mv = new ModelAndView("index");
        return mv;
    }

    @RequestMapping ( "/about" )
    public ModelAndView about(HttpServletRequest request) {
        ModelAndView mv = new ModelAndView("about");
        return mv;
    }

    @RequestMapping ( "/hexin" )
    public ModelAndView hexin(HttpServletRequest request) {
        ModelAndView mv = new ModelAndView("hexin");
        return mv;
    }

    @RequestMapping ( "/service" )
    public ModelAndView service(HttpServletRequest request) {
        ModelAndView mv = new ModelAndView("service");
        return mv;
    }

    @RequestMapping ( "/recruitment" )
    public ModelAndView recruitment(HttpServletRequest request) {
        ModelAndView mv = new ModelAndView("recruitment");
        return mv;
    }

    @RequestMapping ( "/contantus" )
    public ModelAndView contantus(HttpServletRequest request) {
        ModelAndView mv = new ModelAndView("contantus");
        return mv;
    }
    @RequestMapping ( "/news" )
    public ModelAndView news(HttpServletRequest request) {
        ModelAndView mv = new ModelAndView("news");
        return mv;
    }


}
